import React from 'react';
import { Link } from 'react-router';
import { Layout, Menu, Icon } from 'antd';
import LocalStorage from '../../utils/localStorage';
import * as constants from '../../constants';

export default class Sidebar extends React.Component {
  render() {
    const username = LocalStorage.get(constants.FIELDS.USER_NAME)
    return (
      <Layout.Sider width={200} style={{ background: '#fff' }}>
        <Menu
          mode="inline"
          defaultSelectedKeys={['1']}
          defaultOpenKeys={['sub1']}
          style={{ height: '100%' }}
        >

          <Menu.Item key="1">
            <Link to='/detect'>嗅探</Link>
          </Menu.Item>
           <Menu.Item key="3">
            <Link to='/company'>运营信息</Link>
          </Menu.Item>
        </Menu>
      </Layout.Sider>
    );
  }
}
